package com.dudy;

/**
 * author:zjw20
 * date:2016/5/23
 * email:zjw2023@163.com
 * description:游戏中角色类
 */
public abstract class Role {
    /**
     * 名字
     */
    private String name;
    /**
     * 等级
     */
    private String level;
    /**
     * 性别
     */
    private String sex;
    private WeaponBehavior weaponBehavior;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public WeaponBehavior getWeaponBehavior() {
        return weaponBehavior;
    }

    public void setWeaponBehavior(WeaponBehavior weaponBehavior) {
        this.weaponBehavior = weaponBehavior;
    }

    public void flight() {
        weaponBehavior.userWeapon();
    }
}
